package com.woniu.project.controller;


import com.woniu.project.core.dto.ResultDto;
import com.woniu.project.service.PermissionService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author Klaus
 * @since 2020-10-13
 */
@RestController
@RequestMapping("/pawn/permission")
@Slf4j
public class PermissionController {
    @Autowired
    private PermissionService permissionService;

    /**
     * 读取excel中的权限配置
     * @return
     */
    @GetMapping("saveExcelInfo")
    public ResultDto saveExcelInfo(){
        permissionService.saveExcelInfo();
        return ResultDto.success();
    }

}

